package com.mc.gpm.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mc.common.annotation.Excel;
import com.mc.common.core.domain.BaseEntity;

/**
 * 种质资源入库对象 gpm_in_storage
 *
 * @author mc
 * @date 2021-03-19
 */
public class GpmInStorage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 入库编号 */
    private String dtorageId;

    /** 采集编号 */
    @Excel(name = "采集编号")
    private String cltId;

    /** 种质编号 */
    @Excel(name = "种质编号")
    private String germplasmCode;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inTime;

    /** 货架编号 */
    @Excel(name = "货架编号")
    private int shelveId;

    /** 入库量 */
    @Excel(name = "入库量")
    private BigDecimal inAmount;

    /** 入库时活性 */
    @Excel(name = "入库时活性")
    private String inActive;

    /** 入库登记人 */
    @Excel(name = "入库登记人")
    private String inUserId;

    /** 千粒重 */
    @Excel(name = "千粒重")
    private String inGrain;

    /** 纯净度 */
    @Excel(name = "纯净度")
    private String inPurity;

    /** 活性时长 */
    @Excel(name = "活性时长")
    private BigDecimal activeDate;

    private String shelveNumber;

    public String getShelveNumber() {
        return shelveNumber;
    }

    public void setShelveNumber(String shelveNumber) {
        this.shelveNumber = shelveNumber;
    }

    public void setDtorageId(String dtorageId)
    {
        this.dtorageId = dtorageId;
    }

    public String getDtorageId()
    {
        return dtorageId;
    }
    public void setCltId(String cltId)
    {
        this.cltId = cltId;
    }

    public String getCltId()
    {
        return cltId;
    }
    public void setGermplasmCode(String germplasmCode)
    {
        this.germplasmCode = germplasmCode;
    }

    public String getGermplasmCode()
    {
        return germplasmCode;
    }
    public void setInTime(Date inTime)
    {
        this.inTime = inTime;
    }

    public Date getInTime()
    {
        return inTime;
    }
    public void setShelveId(int shelveId)
    {
        this.shelveId = shelveId;
    }

    public int getShelveId()
    {
        return shelveId;
    }
    public void setInAmount(BigDecimal inAmount)
    {
        this.inAmount = inAmount;
    }

    public BigDecimal getInAmount()
    {
        return inAmount;
    }
    public void setInActive(String inActive)
    {
        this.inActive = inActive;
    }

    public String getInActive()
    {
        return inActive;
    }
    public void setInUserId(String inUserId)
    {
        this.inUserId = inUserId;
    }

    public String getInUserId()
    {
        return inUserId;
    }
    public void setInGrain(String inGrain)
    {
        this.inGrain = inGrain;
    }

    public String getInGrain()
    {
        return inGrain;
    }
    public void setInPurity(String inPurity)
    {
        this.inPurity = inPurity;
    }

    public String getInPurity()
    {
        return inPurity;
    }
    public void setActiveDate(BigDecimal activeDate)
    {
        this.activeDate = activeDate;
    }

    public BigDecimal getActiveDate()
    {
        return activeDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("dtorageId", getDtorageId())
                .append("cltId", getCltId())
                .append("germplasmCode", getGermplasmCode())
                .append("inTime", getInTime())
                .append("shelveId", getShelveId())
                .append("inAmount", getInAmount())
                .append("inActive", getInActive())
                .append("inUserId", getInUserId())
                .append("inGrain", getInGrain())
                .append("inPurity", getInPurity())
                .append("createTime", getCreateTime())
                .append("activeDate", getActiveDate())
                .toString();
    }
}